package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.qo.StrategySearchQuery;
import cn.wolfcode.luowowo.search.vo.EsStatisVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IStrategySearchService {
    void saveOrUpdate(StrategyTemplate template);

    /**
     * 查询推荐主题推荐前10
     * @return
     */
    List<Map<String,Object>> queryThemeTop10();


    /**
     * 主题推荐 id name count
     * @return
     */
    List<EsStatisVo> queryConditionThemeGroup();

    /**
     * 国内推荐
     * @return
     */
    List<EsStatisVo> queryConditioncChinasGroup();

    /**
     * 过外推荐
     * @return
     */
    List<EsStatisVo> queryConditioncAbroadsGroup();

    /**
     * 查询主题
     * @param qo
     * @return
     */
    Page query(StrategySearchQuery qo);

    List<StrategyTemplate> findByDestName(String keyword);
}
